package com.allinpay.payment.handler;

import lombok.extern.slf4j.Slf4j;

import com.alibaba.csp.sentinel.slots.block.BlockException;

@Slf4j
public class SentinelExceptionHandler {

    public static String signExceptionHandle(String name, BlockException exception) {
        exception.printStackTrace();
        log.info("sentinel 熔断处理 {}", "signExceptionHandle");
        log.info("sentinel 熔断处理 {}", name);
        return "Sentinel 熔断处理函数";
    }

}